package com.zs.games.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @date 2024年03月13日 14:37
 */
@TableName("user_black")
@Data
public class UserBlack {
    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("用户id")
    private Integer userId;
    @ApiModelProperty("拉黑的用户id")
    private Integer friendUserId;
    @ApiModelProperty("拉黑时间")
    private Date createTime;


    public UserBlack(Integer userId, Integer friendUserId) {
        this.userId = userId;
        this.friendUserId = friendUserId;
        this.createTime = new Date();
    }

    public UserBlack() {
    }
}
